﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XF.Meeting.Entity.dbEntity;
using XF.Meeting.Entity.Query;

namespace XF.Meeting.IDal
{
    public interface IGroupDal
    {

        Task<(DataTable, int, int, bool)> GetGroupOne(GroupQuery query, out string strError);
        Task<DataTable> GetGroupByPID(GroupQuery query, out string strError);
        Task<Tuple<DataTable, int, int>> GetUserListByGroupIdAndKey(GroupQuery query, out string strError);
        Task<bool> AddGroup(GroupInfo entity, out string strError);
        Task<bool> DeleteGroup(GroupInfo entity, out string strError);
        Task<bool> UpdateGroup(GroupInfo entity, out string strError);
        Task<bool> AddGroupUser(GroupInfo entity, out string strError);
        Task<bool> UpdateGroupUser(GroupInfo entity, out string strError);
    }
}
